# -*- coding: utf-8 -*-
# @Time : 2022/10/26 17:44
# @Author : renyumeng
# @Email : 2035328756@qq.com
# @File : DataLoadUtils.py
# @Project : pythonFile
from utils.csvOrJsonFunction.csv_data import dataLoadCSV
from utils.csvOrJsonFunction.json_data import dataLoadJson


class DataLoadFactory:

    @staticmethod
    def loadDataOptions(data, option: str):
        if option == "csv":
            return dataLoadCSV(data)
        elif option == "json":
            return dataLoadJson(data)
